package jp.co.axisware.taskboard.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import jp.co.axisware.taskboard.domain.Project;
import javax.persistence.ManyToOne;
import jp.co.axisware.taskboard.domain.ApplicationUser;
import jp.co.axisware.taskboard.domain.Status;

@RooJavaBean
@RooToString
@RooEntity
public class Task {

    @NotNull
    @Size(max = 100)
    private String summary;

    private long estimation;

    private long actual;

    @ManyToOne
    private Project project;

    @ManyToOne
    private ApplicationUser assignedUser;

    @ManyToOne
    private Status status;
}
